app(app(times, x), app(app(plus, y), app(s, z))) → app(app(plus, app(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0)))), app(app(times, x), app(s, z)))
app(app(times, x), 0) → 0
app(app(times, x), app(s, y)) → app(app(plus, app(app(times, x), y)), x)
app(app(plus, x), 0) → x
app(app(plus, x), app(s, y)) → app(s, app(app(plus, x), y))
app(app(map, f), nil) → nil
app(app(map, f), app(app(cons, x), xs)) → app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
app(app(times, x), app(app(plus, y), app(s, z))) → app(app(plus, app(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0)))), app(app(times, x), app(s, z)))
app(app(times, x), 0) → 0
app(app(times, x), app(s, y)) → app(app(plus, app(app(times, x), y)), x)
app(app(plus, x), 0) → x
app(app(plus, x), app(s, y)) → app(s, app(app(plus, x), y))
app(app(map, f), nil) → nil
app(app(map, f), app(app(cons, x), xs)) → app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(filter2, app(f, x)), f)
APP(app(filter, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(times, x), app(s, y)) → APP(plus, app(app(times, x), y))
APP(app(times, x), app(s, y)) → APP(app(plus, app(app(times, x), y)), x)
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(app(app(filter2, app(f, x)), f), x), xs)
APP(app(map, f), app(app(cons, x), xs)) → APP(app(map, f), xs)
APP(app(plus, x), app(s, y)) → APP(app(plus, x), y)
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(plus, app(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0))))
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(app(plus, app(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0)))), app(app(times, x), app(s, z)))
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0)))
APP(app(app(app(filter2, false), f), x), xs) → APP(app(filter, f), xs)
APP(app(app(app(filter2, true), f), x), xs) → APP(app(filter, f), xs)
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(app(times, app(s, z)), 0)
APP(app(app(app(filter2, false), f), x), xs) → APP(filter, f)
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(app(filter2, app(f, x)), f), x)
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(app(plus, y), app(app(times, app(s, z)), 0))
APP(app(times, x), app(s, y)) → APP(app(times, x), y)
APP(app(map, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(app(times, x), app(s, z))
APP(app(app(app(filter2, true), f), x), xs) → APP(cons, x)
APP(app(filter, f), app(app(cons, x), xs)) → APP(filter2, app(f, x))
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(times, app(s, z))
APP(app(map, f), app(app(cons, x), xs)) → APP(cons, app(f, x))
APP(app(plus, x), app(s, y)) → APP(s, app(app(plus, x), y))
APP(app(app(app(filter2, true), f), x), xs) → APP(filter, f)
APP(app(app(app(filter2, true), f), x), xs) → APP(app(cons, x), app(app(filter, f), xs))
APP(app(map, f), app(app(cons, x), xs)) → APP(app(cons, app(f, x)), app(app(map, f), xs))
app(app(times, x), app(app(plus, y), app(s, z))) → app(app(plus, app(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0)))), app(app(times, x), app(s, z)))
app(app(times, x), 0) → 0
app(app(times, x), app(s, y)) → app(app(plus, app(app(times, x), y)), x)
app(app(plus, x), 0) → x
app(app(plus, x), app(s, y)) → app(s, app(app(plus, x), y))
app(app(map, f), nil) → nil
app(app(map, f), app(app(cons, x), xs)) → app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(filter2, app(f, x)), f)
APP(app(filter, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(times, x), app(s, y)) → APP(plus, app(app(times, x), y))
APP(app(times, x), app(s, y)) → APP(app(plus, app(app(times, x), y)), x)
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(app(app(filter2, app(f, x)), f), x), xs)
APP(app(map, f), app(app(cons, x), xs)) → APP(app(map, f), xs)
APP(app(plus, x), app(s, y)) → APP(app(plus, x), y)
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(plus, app(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0))))
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(app(plus, app(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0)))), app(app(times, x), app(s, z)))
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0)))
APP(app(app(app(filter2, false), f), x), xs) → APP(app(filter, f), xs)
APP(app(app(app(filter2, true), f), x), xs) → APP(app(filter, f), xs)
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(app(times, app(s, z)), 0)
APP(app(app(app(filter2, false), f), x), xs) → APP(filter, f)
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(app(filter2, app(f, x)), f), x)
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(app(plus, y), app(app(times, app(s, z)), 0))
APP(app(times, x), app(s, y)) → APP(app(times, x), y)
APP(app(map, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(app(times, x), app(s, z))
APP(app(app(app(filter2, true), f), x), xs) → APP(cons, x)
APP(app(filter, f), app(app(cons, x), xs)) → APP(filter2, app(f, x))
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(times, app(s, z))
APP(app(map, f), app(app(cons, x), xs)) → APP(cons, app(f, x))
APP(app(plus, x), app(s, y)) → APP(s, app(app(plus, x), y))
APP(app(app(app(filter2, true), f), x), xs) → APP(filter, f)
APP(app(app(app(filter2, true), f), x), xs) → APP(app(cons, x), app(app(filter, f), xs))
APP(app(map, f), app(app(cons, x), xs)) → APP(app(cons, app(f, x)), app(app(map, f), xs))
app(app(times, x), app(app(plus, y), app(s, z))) → app(app(plus, app(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0)))), app(app(times, x), app(s, z)))
app(app(times, x), 0) → 0
app(app(times, x), app(s, y)) → app(app(plus, app(app(times, x), y)), x)
app(app(plus, x), 0) → x
app(app(plus, x), app(s, y)) → app(s, app(app(plus, x), y))
app(app(map, f), nil) → nil
app(app(map, f), app(app(cons, x), xs)) → app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
APP(app(plus, x), app(s, y)) → APP(app(plus, x), y)
app(app(times, x), app(app(plus, y), app(s, z))) → app(app(plus, app(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0)))), app(app(times, x), app(s, z)))
app(app(times, x), 0) → 0
app(app(times, x), app(s, y)) → app(app(plus, app(app(times, x), y)), x)
app(app(plus, x), 0) → x
app(app(plus, x), app(s, y)) → app(s, app(app(plus, x), y))
app(app(map, f), nil) → nil
app(app(map, f), app(app(cons, x), xs)) → app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ ATransformationProof
↳ QDP
↳ QDP
APP(app(plus, x), app(s, y)) → APP(app(plus, x), y)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ ATransformationProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
plus(x, s(y)) → plus(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(app(times, x), app(s, z))
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0)))
APP(app(times, x), app(s, y)) → APP(app(times, x), y)
app(app(times, x), app(app(plus, y), app(s, z))) → app(app(plus, app(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0)))), app(app(times, x), app(s, z)))
app(app(times, x), 0) → 0
app(app(times, x), app(s, y)) → app(app(plus, app(app(times, x), y)), x)
app(app(plus, x), 0) → x
app(app(plus, x), app(s, y)) → app(s, app(app(plus, x), y))
app(app(map, f), nil) → nil
app(app(map, f), app(app(cons, x), xs)) → app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(app(times, x), app(s, z))
APP(app(times, x), app(app(plus, y), app(s, z))) → APP(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0)))
APP(app(times, x), app(s, y)) → APP(app(times, x), y)
app(app(times, x), 0) → 0
app(app(plus, x), 0) → x
app(app(plus, x), app(s, y)) → app(s, app(app(plus, x), y))
times1(x, plus(y, s(z))) → times1(x, s(z))
times1(x, plus(y, s(z))) → times1(x, plus(y, times(s(z), 0)))
times1(x, s(y)) → times1(x, y)
times(x, 0) → 0
plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
The following rules are removed from R:
times1(x, plus(y, s(z))) → times1(x, s(z))
Used ordering: POLO with Polynomial interpretation [25]:
plus(x, 0) → x
POL(0) = 0
POL(plus(x1, x2)) = 2 + x1 + 2·x2
POL(s(x1)) = x1
POL(times(x1, x2)) = x1 + 2·x2
POL(times1(x1, x2)) = x1 + 2·x2
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
times1(x, s(y)) → times1(x, y)
times1(x, plus(y, s(z))) → times1(x, plus(y, times(s(z), 0)))
times(x, 0) → 0
plus(x, s(y)) → s(plus(x, y))
times1(x, s(y)) → times1(x, y)
POL(0) = 0
POL(plus(x1, x2)) = 1 + 2·x1 + x2
POL(s(x1)) = 1 + x1
POL(times(x1, x2)) = x1 + x2
POL(times1(x1, x2)) = x1 + 2·x2
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
times1(x, plus(y, s(z))) → times1(x, plus(y, times(s(z), 0)))
times(x, 0) → 0
plus(x, s(y)) → s(plus(x, y))
plus(x, s(y)) → s(plus(x, y))
POL(0) = 0
POL(plus(x1, x2)) = 2·x1 + 2·x2
POL(s(x1)) = 2 + x1
POL(times(x1, x2)) = x1 + x2
POL(times1(x1, x2)) = x1 + 2·x2
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
times1(x, plus(y, s(z))) → times1(x, plus(y, times(s(z), 0)))
times(x, 0) → 0
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDPSizeChangeProof
APP(app(filter, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(app(app(filter2, false), f), x), xs) → APP(app(filter, f), xs)
APP(app(app(app(filter2, true), f), x), xs) → APP(app(filter, f), xs)
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(app(app(filter2, app(f, x)), f), x), xs)
APP(app(map, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) → APP(app(map, f), xs)
app(app(times, x), app(app(plus, y), app(s, z))) → app(app(plus, app(app(times, x), app(app(plus, y), app(app(times, app(s, z)), 0)))), app(app(times, x), app(s, z)))
app(app(times, x), 0) → 0
app(app(times, x), app(s, y)) → app(app(plus, app(app(times, x), y)), x)
app(app(plus, x), 0) → x
app(app(plus, x), app(s, y)) → app(s, app(app(plus, x), y))
app(app(map, f), nil) → nil
app(app(map, f), app(app(cons, x), xs)) → app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
From the DPs we obtained the following set of size-change graphs: